package com.ffapp.rainmonitorcustom.bean;


import com.alibaba.fastjson.annotation.JSONField;

import java.util.ArrayList;

public class WarnListBean extends BaseListBeanOT {


    @JSONField(name = "alarmList")
    private ArrayList<WarnListData> alarmList = new ArrayList<WarnListData>();

    @JSONField(name = "alarmList")
    public ArrayList<WarnListData> getList() {
        return alarmList;
    }
    @JSONField(name = "alarmList")
    public void setList(ArrayList<WarnListData> list) {
        this.alarmList = list;
    }

    public void addListBean(WarnListBean listbean) {
        if (listbean == null)
            return;
        if (this.getCurrentPage() == INIT_PAGE) {
            setList(listbean.getList());
        } else {
            if (alarmList == null)
                alarmList = new ArrayList<WarnListData>();
            alarmList.addAll(listbean.getList());
        }
        setListBeanData(listbean);
    }
}
